package com.ken.quartz.spring;

import org.springframework.stereotype.Component;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by renchongyu on 2018/11/24.
 */
@Component("anotherBean")
public class AnotherBean {

    public void printAnotherMessage(){
        Date date = new Date();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        System.out.println("AnotherBean date = "+sdf.format(date));
        System.out.println("I am AnotherBean");
    }

}
